﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Q.Spider.Core.Models
{
    /// <summary>
    /// 用于流中间传值
    /// 流上下文
    /// </summary>
    public class FlowContext
    {
        public QSpiderCore Core { get; }

        public Request Request { get; }

        public Config Config { get; }

        public Engine Engine { get; }

        public bool IsLimit { get; set; }


        public DateTime? CompletionTime { get; set; }

        public FlowContextHandelState State { get; set; }

        public FlowContext(QSpiderCore core, Request request)
        {
            Core = core;
            Config = core.Config;
            Engine = core.Engine;
            Request = request;
        }
    }

}
